package com.qf.rabbitmq.config;

import com.rabbitmq.client.AMQP;
import org.springframework.amqp.core.FanoutExchange;
import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;



@Configuration
public class MyConfig {

    @Bean
    public Queue wao() {
        return new Queue("rspringboot");
    }


    //声明交换机
    @Bean
    public FanoutExchange fanoutExchange() {
        return new FanoutExchange("dfgshjk");
    }

    @Bean
    public FanoutExchange dfgshjkasdasda() {
        return new FanoutExchange("dfgshjkasdasda");
    }
}
